package request

type GetEquipmentId struct {
	EquipmentId int64 `json:"equipment_id" form:"equipment_id"  binding:"required"`
}

// 手动总结时间段数据
type CreateTimeSummarize struct {
	EquipmentId int64  `json:"equipment_id" form:"equipment_id" binding:"required"`
	StartTime   string `json:"start_time" form:"start_time" binding:"required"`
	EndTime     string `json:"end_time" form:"end_time" binding:"required"`
}

// 查询某天数据
type OneDayDataReq struct {
	Date        string `json:"date" form:"date"  binding:"required"`
	EquipmentId int64  `json:"equipment_id" form:"equipment_id"  binding:"required"`
}

// 用户手动添加数据
type HealthDataAdd struct {
	UserId          uint64  `json:"userId" form:"userId"`
	EquipmentId     uint64  `json:"equipmentId" form:"equipmentId"`
	BodyTemperature float32 `json:"bodyTemperature" form:"bodyTemperature"`
	BloodSugar      float32 `json:"bloodSugar" form:"bloodSugar"`
	BloodPressure   float32 `json:"bloodPressure" form:"bloodPressure"`
	BloodPressureD  float32 `json:"bloodPressureD" form:"bloodPressureD"`
	BloodOxygen     float32 `json:"bloodOxygen" form:"bloodOxygen"`
}

// 用户
type HealthDataList struct {
	UserId   uint64 `json:"userId" form:"userId"`
	Page     int32  `json:"page" form:"page"`
	PageSize int32  `json:"pageSize" form:"pageSize"`
}
